import request from "@/utils/request";

// 查询列表
export function getRuleList(query) {
  return request({
    url: "/mes/proBarcodeRules/list",
    method: "get",
    params: query,
  });
}

// 新增
export function addBarcodeRule(data) {
  return request({
    url: "/mes/proBarcodeRules",
    method: "post",
    data: data,
  });
}

// 修改流程达式
export function updateBarcodeRule(data) {
  return request({
    url: "/mes/proBarcodeRules",
    method: "put",
    data: data,
  });
}

// 删除流程达式
export function delBarcodeRules(id) {
  console.log(id);
  return request({
    url: "/mes/proBarcodeRules/" + id,
    method: "delete",
  });
}
